#pragma once
#include "stdafx.h"
#include "ui_plot_param_list.h"
#include "units.h"
#include "parameters_model.h"

class Units;

class ChoiceOfParameters : public QDialog
{
	Q_OBJECT
private:
	Ui::chooseParametersDialog ui;
	vector<QCheckBox *> check;
	vector<QLabel *> parameter;
	vector<QComboBox *> unit;
	vector<QLabel *> description;
	bool isPlot;
public:
	ChoiceOfParameters(QWidget* pwgt = 0);	
	void setData(const QStringList &parameters,/* const QStringList &units, */const QStringList &descriptions = QStringList());
	pair<QStringList, QStringList> getData();
	bool typeIsPlot(){ return isPlot; }
private slots:
	void on_btnPlot_clicked();
	void on_btnCSV_clicked();
	void on_btnReject_clicked();
	void on_cbAllParameters_changed(int value);
	void on_check_changed(int value);
};
